<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<div id="footer">
	<div id="footer_menu">
	<%
		if (aboutCh != null) {
			List<Channel> aboutList = service.getSubChannel(aboutCh);
			Iterator<Channel> aboutLists = aboutList.iterator();
			Channel subAbout = null;

			while(aboutLists.hasNext()) {
				subAbout = (Channel)aboutLists.next();
				Integer aboutId = subAbout.getId();
	%>
	<a href="/chinayachting/frontend/about.do?channelId=<%=aboutCh.getId() %>&subChannelId=<%=aboutId %>" title="<%=subAbout.getName() %>"><%=subAbout.getName() %></a> | 
	<%
			}
		}
	%>
	<a style="CURSOR: hand" onclick="var strHref=window.location.href;this.style.behavior='url(#default#homepage)'; this.setHomePage('http://114.80.110.50:8080/chinayachting/');"  title="设为首页">设为首页</a>
	</div>
    <div id="copyright">Copyright © 2000-2009 chinayuating. All rights reserved. 中华游艇，版权所有。</div>
</div>
<script type="text/javascript">
var gjsearch = document.getElementById("a");

if (gjsearch) {
var nodes = gjsearch.childNodes;
getSelectNode(nodes);
}

function getSelectNode(EleNode) {
	var eleLen = EleNode.length;
	gjsearch.style.display = "none";
	for(j=0;j<eleLen;j++) {
		if (EleNode[j].hasChildNodes()) {
			if (EleNode[j].firstChild.nodeName) {
				if (EleNode[j].firstChild.nodeName == "SELECT" && EleNode[j].firstChild.value != "") {
					gjsearch.style.display = "block";
				}
			}
		} else {
			if (EleNode[j].noteName) {
				if (EleNode[j].noteName == "SELECT" && EleNode[j].value != "") {
					gjsearch.style.display = "block";
				}
			}
		}
	}
}

</script>
